package com.yueshang.neuron.common.util;

import java.util.Comparator;

public class NodeOrderComparator implements Comparator<Node> {

    // 按照节点排序值进行排序
    public int compare(Node n1, Node n2) {
        return (n1.getNum() < n2.getNum() ? -1 : (n1.getNum() == n2.getNum() ? 0 : 1));
    }
}
